package rhc.taskSchedule.command;

import rhc.discribute.node.host.Host;

/**命令获取或执行接口
 * @author rhc
 *
 */
public interface RunningCommandCreater {

	/**获取启动命令
	 * @param runningId
	 * @return
	 */
	String getRunCommand(String runningId);
	
	/**获取停止命令
	 * @param runningId
	 * @return
	 */
	String getStopCommand(String runningId);
	
	/**获取暂停命令
	 * @param runningId
	 * @return
	 */
	String getPauseCommand(String runningId);
	
	/**获取恢复命令
	 * @param runningId
	 * @return
	 */
	String getRegainCommand(String runningId);
	
	/**发送命令到该机器
	 * @param host
	 * @return
	 * @throws Exception
	 */
	boolean sendCommand(String command,Host host) throws Exception;
	
}
